<h1>${currentPage}</h1>

<table>
    <tr>
        <th>orderId</th>
        <th>orderStatus</th>
        <th>payStatus</th>
        <th>操作</th>
    </tr>

    <#list orderDTOPage.content as orderDTO>
    <tr>
        <td>${orderDTO.orderId}</td>
        <td>${orderDTO.getOrderStatusEnum().message}</td>
        <td>${orderDTO.getPayStatusEnum().message}</td>
        <td><a href="/sell/seller/order/detail">详情</a></td>
        <td><a href="/sell/seller/order/cancel?orderId=${orderDTO.getOrderId()}">取消</a></td>
    </tr>
    </#list>

</table>

<br>
<br>
<#if currentPage gt 1>
    <a href="/sell/seller/order/list?page=${currentPage - 1}&size=2">上一页</a>
</#if>
<#list 1..orderDTOPage.totalPages as index>
    <a href="/sell/seller/order/list?page=${index}&size=2">${index}</a>
</#list>
<#if currentPage lt orderDTOPage.totalPages>
        <a href="/sell/seller/order/list?page=${currentPage + 1}&size=2">下一页</a>
</#if>